// 外壳的mockup
(function() {
	
    var NS = xmock.data.console.DIChart = {};
    var dateToString = xutil.date.dateToString;

    function random () {
        return Math.round(Math.random() * 10000000);
    }

    /**
     * 基本
     */
	var normal = function(url, options) {
        var chartData1 = {
            title: '数据图',
            yAxises: [{ name: 'left', unitName: '元'}],
            xAxisType: 'category',
            xAxisCategories: [
                'aa', 
                'bb', 
                'cc', 
                'dd', 
                'ee', 
                'ff', 
                'gg', 
                'hh' 
            ],

            seriesData: [
                {
                    name: '系列1',
                    type: 'line',
                    data: [
                        11,22,33,21,44,66,22
                    ]
                }
            ]

        };

        return {
            status: 0,
            message: 'OKOKmsg',
            data: { reportChart: chartData1 }
        };
    };

    /**
     * 烧杯
     */
    var beaker = function(url, options) {
        var chartData1 = {
            title: '我是商机池的烧杯图',
            yAxises: [{ name: 'left', unitName: '元'}],
            xAxisType: 'beaker',
            xAxisCategories: [
                '岗位'
            ],

            seriesData: [
                {
                    name: '月累计拜访任务完成率（OS页面）',
                    data: []//[0.1305]
                },
                {
                    name: '右系列1',
                    data: [111]
                },
                {
                    name: '左刻度1',
                    data: [3333]
                },
                {
                    name: '左系列3',
                    data: [22]
                },
                {
                    name: '左系列2',
                    data: [222]
                },
                {
                    name: '左系列1',
                    data: [2442]
                }
            ]
        };

        return {
            status: 0,
            message: 'OKOKmsg',
            data: { reportChart: chartData1 }
        };
    };    

    /**
     * 时间扩展
     */
    var datatime = function(url, options) {

        var start;
        var xAxislength = 40;
        var seriesCount = 3;
        var yAxisMin = -300000;
        var yAxisMax = 400000;

        var xAxisCategories = [];
        var date;
        var yAxisRange = yAxisMax - yAxisMin;
        var seriesData = [];
        var seed;
        var seed2;
        var seed3;
        var ser;
        var i;
        var j;
        var chartData1 = {};

        function _category() {
            start = new Date(2011, 01, 05);
            for (
                i = 0, date = new Date(start); 
                i < xAxislength;
                i ++, date.setDate(date.getDate() + 1)
            ) {
                xAxisCategories.push(dateToString(date));
            }
            chartData1.xAxisType = 'category';
        }

        function _date() {
            start = new Date(2011, 01, 05);
            for (
                i = 0, date = new Date(start); 
                i < xAxislength;
                i ++, date.setDate(date.getDate() + 1)
            ) {
                xAxisCategories.push(dateToString(date));
            }
            chartData1.xAxisType = 'datetime';
        }

        function _week() {
            start = new Date(2011, 01, 05);
            for (
                i = 0, date = new Date(start); 
                i < xAxislength;
                i ++, date.setDate(date.getDate() + 7)
            ) {
                xAxisCategories.push(dateToString(date));
            }
            chartData1.xAxisType = 'week';
        }

        function _month() {
            start = new Date(2012, 0, 1);
            for (
                i = 0, date = new Date(start); 
                i < xAxislength;
                i ++, date.setMonth(date.getMonth() + 1)
            ) {
                xAxisCategories.push(dateToString(date, 'yyyy-MM'));
            }
            chartData1.xAxisType = 'month';
        }

        function _quarter() {
            start = new Date(2012, 0, 1);
            for (
                i = 0, date = new Date(start); 
                i < xAxislength; 
                i ++, date.setMonth(date.getMonth() + 3)
            ) {
                xAxisCategories.push(date.getFullYear() + '-Q' + xutil.date.getQuarter(date));
            }
            chartData1.xAxisType = 'quarter';
        }

        function _year() {
            start = new Date(2012, 0, 1);
            for (
                i = 0, date = new Date(start); 
                i < xAxislength; 
                i ++, date.setFullYear(date.getFullYear() + 1)
            ) {
                xAxisCategories.push(dateToString(date, 'yyyy'));
            }
            chartData1.xAxisType = 'year';
        }

        // _category();
        _date();
        // _week();
        // _month();
        // _quarter();
        // _year();

        for (i = 0; i < seriesCount; i ++) {
            seed = Math.random() * yAxisRange * 8 + yAxisMin;
            seed3 = 1;

            ser = {
                name: '系列' + i,
                // type: 'line',
                type: 'line',
                yAxisName: i == 0 ? 'left' : 'right',
                // yAxisName: 'left',
                stack: 'asdf',
                data: [],
                format: 'I,III%'
            };
            for (j = 0; j < xAxislength; j ++, seed2 --) {
                if (!seed2 || seed2 < 0) {
                    seed2 = Math.round(Math.random() * xAxislength / 5);
                    seed3 = -seed3;
                }
                // if (j == 0) 
                    // ser.data.push(null)
                // else 
                    // ser.data.push(seed += (Math.random() * (yAxisMax - yAxisMin) + yAxisMin) * 10000);
                if (i == 1) {
                    ser.data.push(Math.sin(seed += Math.PI / 17) * yAxisRange * 8);
                }
                else {
                    ser.data.push(seed += seed3 * (Math.random() * yAxisRange));
                }
            }
            seriesData.push(ser);
        }

        chartData1.title = '数据图';
        chartData1.xAxisCategories = xAxisCategories;
        chartData1.seriesData = seriesData;
        chartData1.yAxises = [
            { name: 'left', unitName: '元' },
            { name: 'right', unitName: '个' }
        ];

        return {
            status: 0,
            message: 'OKOKmsg',
            data: { 
                reportChart: chartData1,
                reportTemplateId: 'meta' + Math.random()
            }
        };
    };

    var test = {
        "data": {
            "reportChart": {
                "title": "",
                "subTitle": "",
                "xAxisType": "datetime",
                "xAxisCategories": [
                    "2012-04-14",
                    "2012-04-15",
                    "2012-04-16",
                    "2012-04-17",
                    "2012-04-18",
                    "2012-04-19",
                    "2012-04-20",
                    "2012-04-21",
                    "2012-04-22",
                    "2012-04-23",
                    "2012-04-24",
                    "2012-04-25",
                    "2012-04-26",
                    "2012-04-27",
                    "2012-04-28",
                    "2012-04-29",
                    "2012-04-30",
                    "2012-05-01",
                    "2012-05-02",
                    "2012-05-03",
                    "2012-05-04",
                    "2012-05-05",
                    "2012-05-06",
                    "2012-05-07",
                    "2012-05-08",
                    "2012-05-09",
                    "2012-05-10",
                    "2012-05-11",
                    "2012-05-12",
                    "2012-05-13",
                    "2012-05-14",
                    "2012-05-15",
                    "2012-05-16",
                    "2012-05-17",
                    "2012-05-18",
                    "2012-05-19",
                    "2012-05-20",
                    "2012-05-21",
                    "2012-05-22",
                    "2012-05-23",
                    "2012-05-24",
                    "2012-05-25",
                    "2012-05-26",
                    "2012-05-27",
                    "2012-05-28",
                    "2012-05-29",
                    "2012-05-30",
                    "2012-05-31",
                    "2012-06-01",
                    "2012-06-02",
                    "2012-06-03",
                    "2012-06-04",
                    "2012-06-05",
                    "2012-06-06",
                    "2012-06-07",
                    "2012-06-08",
                    "2012-06-09",
                    "2012-06-10",
                    "2012-06-11",
                    "2012-06-12",
                    "2012-06-13",
                    "2012-06-14",
                    "2012-06-15",
                    "2012-06-16",
                    "2012-06-17",
                    "2012-06-18",
                    "2012-06-19",
                    "2012-06-20",
                    "2012-06-21",
                    "2012-06-22",
                    "2012-06-23",
                    "2012-06-24",
                    "2012-06-25",
                    "2012-06-26",
                    "2012-06-27",
                    "2012-06-28",
                    "2012-06-29",
                    "2012-06-30",
                    "2012-07-01",
                    "2012-07-02",
                    "2012-07-03",
                    "2012-07-04",
                    "2012-07-05",
                    "2012-07-06",
                    "2012-07-07",
                    "2012-07-08",
                    "2012-07-09",
                    "2012-07-10",
                    "2012-07-11",
                    "2012-07-12",
                    "2012-07-13",
                    "2012-07-14",
                    "2012-07-15",
                    "2012-07-16",
                    "2012-07-17",
                    "2012-07-18",
                    "2012-07-19",
                    "2012-07-20",
                    "2012-07-21",
                    "2012-07-22",
                    "2012-07-23",
                    "2012-07-24",
                    "2012-07-25",
                    "2012-07-26",
                    "2012-07-27",
                    "2012-07-28",
                    "2012-07-29",
                    "2012-07-30",
                    "2012-07-31",
                    "2012-08-01",
                    "2012-08-02",
                    "2012-08-03",
                    "2012-08-04",
                    "2012-08-05",
                    "2012-08-06",
                    "2012-08-07",
                    "2012-08-08",
                    "2012-08-09",
                    "2012-08-10",
                    "2012-08-11",
                    "2012-08-12",
                    "2012-08-13",
                    "2012-08-14",
                    "2012-08-15",
                    "2012-08-16",
                    "2012-08-17",
                    "2012-08-18",
                    "2012-08-19",
                    "2012-08-20",
                    "2012-08-21",
                    "2012-08-22",
                    "2012-08-23",
                    "2012-08-24",
                    "2012-08-25",
                    "2012-08-26",
                    "2012-08-27",
                    "2012-08-28",
                    "2012-08-29",
                    "2012-08-30",
                    "2012-08-31",
                    "2012-09-01",
                    "2012-09-02",
                    "2012-09-03",
                    "2012-09-04",
                    "2012-09-05",
                    "2012-09-06",
                    "2012-09-07",
                    "2012-09-08",
                    "2012-09-09",
                    "2012-09-10",
                    "2012-09-11",
                    "2012-09-12",
                    "2012-09-13",
                    "2012-09-14",
                    "2012-09-15",
                    "2012-09-16",
                    "2012-09-17",
                    "2012-09-18",
                    "2012-09-19",
                    "2012-09-20",
                    "2012-09-21",
                    "2012-09-22",
                    "2012-09-23",
                    "2012-09-24",
                    "2012-09-25",
                    "2012-09-26",
                    "2012-09-27",
                    "2012-09-28",
                    "2012-09-29",
                    "2012-09-30",
                    "2012-10-01",
                    "2012-10-02",
                    "2012-10-03",
                    "2012-10-04",
                    "2012-10-05",
                    "2012-10-06",
                    "2012-10-07",
                    "2012-10-08",
                    "2012-10-09",
                    "2012-10-10",
                    "2012-10-11",
                    "2012-10-12",
                    "2012-10-13",
                    "2012-10-14",
                    "2012-10-15",
                    "2012-10-16",
                    "2012-10-17",
                    "2012-10-18",
                    "2012-10-19",
                    "2012-10-20",
                    "2012-10-21",
                    "2012-10-22",
                    "2012-10-23",
                    "2012-10-24",
                    "2012-10-25",
                    "2012-10-26",
                    "2012-10-27",
                    "2012-10-28",
                    "2012-10-29",
                    "2012-10-30",
                    "2012-10-31",
                    "2012-11-01",
                    "2012-11-02",
                    "2012-11-03",
                    "2012-11-04",
                    "2012-11-05",
                    "2012-11-06",
                    "2012-11-07",
                    "2012-11-08",
                    "2012-11-09",
                    "2012-11-10",
                    "2012-11-11",
                    "2012-11-12",
                    "2012-11-13",
                    "2012-11-14",
                    "2012-11-15",
                    "2012-11-16",
                    "2012-11-17",
                    "2012-11-18",
                    "2012-11-19",
                    "2012-11-20",
                    "2012-11-21",
                    "2012-11-22",
                    "2012-11-23",
                    "2012-11-24",
                    "2012-11-25",
                    "2012-11-26",
                    "2012-11-27",
                    "2012-11-28",
                    "2012-11-29",
                    "2012-11-30",
                    "2012-12-01",
                    "2012-12-02",
                    "2012-12-03",
                    "2012-12-04",
                    "2012-12-05",
                    "2012-12-06",
                    "2012-12-07",
                    "2012-12-08",
                    "2012-12-09",
                    "2012-12-10",
                    "2012-12-11",
                    "2012-12-12",
                    "2012-12-13",
                    "2012-12-14",
                    "2012-12-15",
                    "2012-12-16",
                    "2012-12-17",
                    "2012-12-18",
                    "2012-12-19",
                    "2012-12-20",
                    "2012-12-21",
                    "2012-12-22",
                    "2012-12-23",
                    "2012-12-24",
                    "2012-12-25",
                    "2012-12-26",
                    "2012-12-27",
                    "2012-12-28",
                    "2012-12-29",
                    "2012-12-30",
                    "2012-12-31",
                    "2013-01-01",
                    "2013-01-02",
                    "2013-01-03",
                    "2013-01-04",
                    "2013-01-05",
                    "2013-01-06",
                    "2013-01-07",
                    "2013-01-08",
                    "2013-01-09",
                    "2013-01-10",
                    "2013-01-11",
                    "2013-01-12",
                    "2013-01-13",
                    "2013-01-14",
                    "2013-01-15",
                    "2013-01-16",
                    "2013-01-17",
                    "2013-01-18",
                    "2013-01-19",
                    "2013-01-20",
                    "2013-01-21",
                    "2013-01-22",
                    "2013-01-23",
                    "2013-01-24",
                    "2013-01-25",
                    "2013-01-26",
                    "2013-01-27",
                    "2013-01-28",
                    "2013-01-29",
                    "2013-01-30",
                    "2013-01-31",
                    "2013-02-01",
                    "2013-02-02",
                    "2013-02-03",
                    "2013-02-04",
                    "2013-02-05",
                    "2013-02-06",
                    "2013-02-07",
                    "2013-02-08",
                    "2013-02-09",
                    "2013-02-10",
                    "2013-02-11",
                    "2013-02-12",
                    "2013-02-13",
                    "2013-02-14",
                    "2013-02-15",
                    "2013-02-16",
                    "2013-02-17",
                    "2013-02-18",
                    "2013-02-19",
                    "2013-02-20",
                    "2013-02-21",
                    "2013-02-22",
                    "2013-02-23",
                    "2013-02-24",
                    "2013-02-25",
                    "2013-02-26",
                    "2013-02-27",
                    "2013-02-28",
                    "2013-03-01",
                    "2013-03-02",
                    "2013-03-03",
                    "2013-03-04",
                    "2013-03-05",
                    "2013-03-06",
                    "2013-03-07",
                    "2013-03-08",
                    "2013-03-09",
                    "2013-03-10",
                    "2013-03-11",
                    "2013-03-12",
                    "2013-03-13",
                    "2013-03-14",
                    "2013-03-15",
                    "2013-03-16",
                    "2013-03-17",
                    "2013-03-18",
                    "2013-03-19",
                    "2013-03-20",
                    "2013-03-21",
                    "2013-03-22",
                    "2013-03-23",
                    "2013-03-24",
                    "2013-03-25",
                    "2013-03-26",
                    "2013-03-27",
                    "2013-03-28",
                    "2013-03-29",
                    "2013-03-30",
                    "2013-03-31",
                    "2013-04-01",
                    "2013-04-02",
                    "2013-04-03",
                    "2013-04-04",
                    "2013-04-05",
                    "2013-04-06",
                    "2013-04-07",
                    "2013-04-08",
                    "2013-04-09",
                    "2013-04-10",
                    "2013-04-11",
                    "2013-04-12",
                    "2013-04-13",
                    "2013-04-14"
                ],
                "yAxises": [
                    {
                        "name": "left",
                        "unitName": "元"
                    }
                ],
                "seriesData": [
                    {
                        "data": [
                            1648750.8599999999,
                            1652782.4200000002,
                            1747525.11,
                            1744741.69,
                            1747547.5499999998,
                            1762760.92,
                            1835521.6,
                            1704807.9500000002,
                            1654968.33,
                            1819451.2000000002,
                            1833921.87,
                            1811783.8800000004,
                            1830620.48,
                            1828570.5100000002,
                            1742576.62,
                            1698500.11,
                            1659785.14,
                            1650120.75,
                            1785598.87,
                            1776182.74,
                            1747266.0099999998,
                            1673302.64,
                            1661078.89,
                            1777279.32,
                            1768016.06,
                            1738350.9100000001,
                            1704068.9300000002,
                            1705027.66,
                            1643062.7599999998,
                            1624486.26,
                            1775223.6199999999,
                            1744187.8199999998,
                            1775117.56,
                            1787054.96,
                            1856900.6600000001,
                            1705383.79,
                            1692456.67,
                            1915140.0299999998,
                            1900496.5,
                            1905158.9699999997,
                            2025296.6600000001,
                            1925688.84,
                            1796352.02,
                            1782582.28,
                            1929821.7500000002,
                            1940852.78,
                            1950576.59,
                            1949040.5,
                            11535.380000000074,
                            1757863.6,
                            1739631.1700000002,
                            1270509.29,
                            2015304.62,
                            2009888.6400000001,
                            1951601.26,
                            1920462.32,
                            1901020.5700000003,
                            1930857.4399999997,
                            1896458.8099999998,
                            1909093.86,
                            1917781.6500000001,
                            1908782.45,
                            1905544.45,
                            1811886.68,
                            1741208.58,
                            1895751.2900000003,
                            1953822.36,
                            2051239.3299999998,
                            1863136.4500000002,
                            1763138.6600000001,
                            1669635.0999999999,
                            1706554.7100000002,
                            1920357.05,
                            2019005.12,
                            88093.28999999988,
                            2048826.8299999998,
                            2058759.0000000002,
                            3536223.53,
                            1888146.68,
                            2143846.8699999996,
                            2126035.3000000003,
                            2108111.37,
                            2161993.7800000003,
                            2096019.28,
                            1986179.53,
                            1951231.0799999998,
                            2162611.75,
                            2147314.4000000004,
                            2156758.34,
                            2180920.6100000003,
                            2134262.7,
                            2005123.8499999999,
                            1973796.95,
                            2192642.7300000004,
                            2219343.97,
                            2177293.45,
                            2175521.8400000003,
                            2720139.8999999994,
                            2536927.83,
                            2535436.64,
                            2754336.1,
                            2709534.5100000007,
                            2666987.2500000005,
                            2670208.6,
                            2689416.37,
                            2529214.8299999996,
                            2527245.8499999996,
                            2718682.9299999997,
                            3278374.11,
                            2650207.1199999996,
                            2606524.64,
                            2646508.44,
                            2493959.2199999997,
                            2410996.6599999997,
                            2653401.56,
                            2679426.57,
                            2742076.98,
                            2772918.9899999998,
                            2760168.25,
                            2620970.4099999997,
                            2542915.7699999996,
                            2699521.7,
                            2678011.65,
                            2771417.07,
                            2203082.51,
                            2149917.2399999998,
                            2003760.6500000001,
                            1939776.21,
                            2119516.22,
                            2071600.65,
                            2073050.55,
                            2038921.92,
                            2026796.82,
                            1874179.97,
                            1889710.6,
                            2187275.06,
                            1953786.2000000002,
                            1907700.99,
                            1933959.04,
                            2009705.76,
                            1875405.9800000002,
                            1831307.37,
                            1930860.47,
                            1923505.1999999997,
                            1971441.6900000002,
                            2108826.5,
                            2144688.3099999996,
                            2139850.05,
                            2086346.91,
                            2098087.85,
                            2092660.9899999998,
                            2067266.23,
                            2192853.11,
                            2168512.01,
                            2079523.21,
                            1981473.6199999999,
                            2049458.9299999997,
                            2040436.12,
                            2124650.6399999997,
                            2102426.42,
                            2153776.76,
                            2144859.79,
                            2040945.6099999996,
                            2107029.19,
                            2054425.4100000001,
                            2067503.7099999997,
                            2029878.73,
                            1986959.7999999998,
                            1894974.2999999998,
                            1763252.6299999997,
                            1704227.8699999999,
                            1710238.2299999997,
                            1710739.4899999998,
                            1726716.88,
                            1720234.85,
                            1798374.49,
                            1738122.69,
                            1933982.9199999997,
                            1929460.51,
                            1962682.5000000002,
                            2048427.54,
                            1934023.5600000003,
                            1845885.85,
                            1844939.38,
                            2034308.0799999998,
                            2120574.9,
                            2098921.63,
                            2142994.97,
                            2134875.29,
                            2048365.4800000002,
                            2028048.4200000002,
                            2157483.12,
                            2030570.16,
                            2057553.39,
                            2067831.8800000001,
                            2121791.6700000004,
                            2004684.0000000002,
                            1968653.73,
                            2137849.69,
                            2158705.9400000004,
                            2147180.4800000004,
                            2062453.34,
                            2086795.02,
                            1990377.55,
                            1949607.4999999998,
                            2119481.18,
                            2088068.85,
                            2101213.08,
                            2214922.9,
                            2375582.9,
                            2398493.29,
                            2395197.5700000003,
                            2374301.93,
                            2276147.4000000004,
                            2231497.87,
                            2251752.8400000003,
                            2327907.37,
                            2165471.97,
                            2120767.26,
                            2292721.5100000002,
                            2254462.25,
                            2270569.79,
                            2256184.87,
                            2251892.6,
                            2078568.61,
                            2043079.8599999999,
                            2148518.16,
                            2142615.8400000003,
                            2190625.24,
                            2199383.35,
                            2199310.37,
                            2121508.39,
                            2124169.51,
                            2269862.34,
                            2277403.1799999997,
                            2478527.4299999997,
                            2322607.94,
                            2313213.53,
                            2158275.05,
                            2111394.89,
                            2388397.94,
                            2385177.43,
                            2395513.57,
                            2430897.77,
                            2420877.5999999996,
                            2251063.07,
                            2230757.21,
                            2395300.7700000005,
                            2386177.1100000003,
                            2366419.1700000004,
                            2379435.03,
                            2460202.81,
                            2214601.26,
                            2170030.2899999996,
                            2285726.9,
                            2313665.37,
                            2307302.4399999995,
                            2280448.38,
                            2344765.04,
                            2060278.9499999997,
                            1965307.7799999998,
                            2113521.84,
                            1767900.45,
                            1754487.99,
                            1758056.43,
                            1848166.06,
                            1857463.66,
                            1931186.5999999999,
                            1898306.26,
                            1921180.78,
                            2013441.17,
                            2039637.7599999995,
                            2056513.5800000003,
                            1995451.9500000002,
                            2014520.57,
                            2082450.5899999996,
                            2055622.2999999998,
                            2088417.26,
                            2087636.3399999999,
                            2052797.64,
                            2011195.4799999997,
                            1981970.1,
                            2216403.33,
                            2262024.9899999998,
                            2214847.6799999997,
                            2154295.34,
                            2170148.77,
                            2089972.0699999998,
                            2064616.91,
                            2185026.8699999996,
                            2124913.3699999996,
                            2083542.49,
                            2329622.1,
                            1998518.1500000001,
                            1890362.5699999998,
                            1877316.74,
                            1979920.02,
                            2011273.6300000004,
                            1902790,
                            1803622.11,
                            1574991.85,
                            1359584.29,
                            1436742.0300000003,
                            1442092.2300000002,
                            1483589.86,
                            1512816.86,
                            1530866.36,
                            1624113.49,
                            1922994.9300000002,
                            1951492.44,
                            2018576.43,
                            2050301.3699999999,
                            2111431.26,
                            2164946.1599999997,
                            2166906.28,
                            2003083.0600000003,
                            1963564.26,
                            2275796.75,
                            2203432.81,
                            2148679.98,
                            2355946.53,
                            2171771.0300000003,
                            2008026.46,
                            1980585.12,
                            2252679.1399999997,
                            2027610,
                            2290299.57,
                            2282844.6799999997,
                            2313365.49,
                            2236920.69,
                            2161549.36,
                            2213931.8899999997,
                            2211194.73,
                            2201096.76,
                            2109223.02,
                            2119265.38,
                            2162310.2399999998,
                            2059144.51,
                            2010800.3,
                            1976474.7,
                            1896972.2300000002,
                            1861869.72,
                            1890600.83,
                            1874415.0100000002,
                            1886094.77,
                            1953286.7999999998,
                            1989726.5799999998,
                            1961966.1500000001,
                            1939353.45,
                            1873170.2999999998,
                            1852396.59,
                            1856158.99,
                            2575299.77,
                            1704027.61,
                            1667053.57,
                            1593630.15,
                            1527374.65,
                            1428590.55,
                            1486692.77,
                            1501672.77,
                            1540080.16,
                            1566709.34,
                            1702561.09,
                            1569043.82,
                            1485584.84,
                            1504550.1799999997
                        ],
                        "name": "全部产品大类-运营收入",
                        "type": "line"
                    }
                ]
            },
            "reportTemplateId": "SESSIONLOADED^_^KA_ACRM^_^KA_ACRM_chart^_^-654756075^_^0dc31992-9bd4-481e-b916-87e9f4c651c0"
        },
        "status": 0,
        "statusInfo": ""
    };

    NS.OLAP_CHART_DATA = datatime;
//     NS.OLAP_CHART_DATA = {
//     "data": {
//         "reportChart": {
//             "title": "",
//             "subTitle": "",
//             "xAxisType": "datetime",
//             "xAxisCategories": [
//                 "2013-08-07",
//                 "2013-08-08",
//                 "2013-08-09",
//                 "2013-08-10",
//                 "2013-08-11",
//                 "2013-08-12",
//                 "2013-08-13"
//             ],
//             "yAxises": [
//                 {
//                     "name": "left",
//                     "unitName": "元"
//                 },
//                 {
//                     "name": "right",
//                     "unitName": "个"
//                 }
//             ],
//             "seriesData": [
//                 {
//                     "data": [
//                         null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null,
//                         // null
//                     ],
//                     "format": "I,III.DD",
//                     "name": "消费上限",
//                     "type": "line"
//                 }
//             ]
//         },
//         "reportTemplateId": "SESSIONLOADED^_^newpangu_bj^_^PG_NEW11^_^767467698^_^198abbe7-ec53-4be5-9e3c-158720496cbd"
//     },
//     "status": 0,
//     "statusInfo": ""
// };
    // NS.OLAP_CHART_DATA = beaker;
/*    NS.OLAP_CHART_DATA = {
        "data": {
            "reportChart": {
                "title": "",
                "subTitle": "",
                "xAxisType": "category",
                "xAxisCategories": [
                    "客户发展部", "TTTTT", "UUUU"
                ],
                "yAxises": [
                    {
                        "name": "left",
                        "unitName": "元"
                    },
                    {
                        "name": "right",
                        "unitName": "个"
                    }
                ],
                "seriesData": [
                    {
                        "data": [
                            11, 1242, 23
                        ],
                        "format": "I,III.DD",
                        "name": "客保状态-客保量",
                        "type": "pie"
                    },
                    {
                        "data": [
                            4
                        ],
                        "format": "I,III.DD",
                        "name": "跟进中-未提单-客保量",
                        "type": "pie"
                    },
                    {
                        "data": [
                            4
                        ],
                        "format": "I,III.DD",
                        "name": "跟进中-已提单-客保量",
                        "type": "pie"
                    },
                    {
                        "data": [
                            3
                        ],
                        "format": "I,III.DD",
                        "name": "跟进中-已出单-客保量",
                        "type": "pie"
                    },
                    {
                        "data": [
                            2
                        ],
                        "format": "I,III.DD",
                        "name": "跟进成功-成单上线-客保量",
                        "type": "pie"
                    },
                    {
                        "data": [
                            1
                        ],
                        "format": "I,III.DD",
                        "name": "跟进失败-超时掉保-客保量",
                        "type": "pie"
                    },
                    {
                        "data": [
                            1
                        ],
                        "format": "I,III.DD",
                        "name": "跟进失败-放弃跟进-客保量",
                        "type": "pie"
                    }
                ]
            },
            "reportTemplateId": "SESSIONLOADED^_^newpangu_bj^_^PG_NEW9^_^1476027386^_^bd992f50-1cad-4e14-9fff-60a887341cee"
        },
        "status": 0,
        "statusInfo": ""
    };*/
    // NS.OLAP_CHART_DATA = beaker;
    // NS.OLAP_CHART_DATA = {"data":{"reportChart":{"title":"","subTitle":"","xAxisType":"quarter","xAxisCategories":["2011-Q1","2011-Q1","2011-Q1","2012-Q1","2012-Q1","2012-Q1","2012-Q1","2013-Q1","2013-Q1"],"yAxises":[{"name":"left","unitName":"元"}],"seriesData":[{"data":[892195379.37000000476837158203125,1158320599.5299999713897705078125,1248074947.809999942779541015625,1140518793.940000057220458984375,1399385849.1400001049041748046875,1690346672.9900000095367431640625,1807959933.5899999141693115234375,1805593273.21000003814697265625,655689695.769999980926513671875],"format":"I,III.DD","name":"全部一级行业-运营收入","type":"line"}]},"reportTemplateId":"SESSIONLOADED^_^KA_ACRM^_^KA_ACRM_chart^_^-654756075^_^b9eeafb7-774a-4e2f-9c79-3380482321e0"},"status":0,"statusInfo":""};


    var POOL = {};

    // NS.OLAP_CHART_DATA = {"data":{"reportChart":{"title":"","subTitle":"","xAxisType":"","xAxisCategories":["pg客户发展部（北京）(崔德尧)","客发A大部（北京）(张明艳)","客发B大部（北京）(代卉)","客发C大部（北京）(王威)","客发D大部（北京）(马豫滇)","客发E大部（北京）(郝博)","客发F大部（北京）(陈义)","客发G大部（北京）(柳艳)","客发H大部（北京）(王红锋)","客发I大部（北京）(杜小林)","客发培训组（N）（北京）(赵岩1)"],"yAxisName":"","seriesData":[{"data":[null,null,null,null,null,null,null,null,null,null,null],"name":"MTD","type":"line"},{"data":[24,5,2,1,0,1,2,1,1,10,1],"name":"12点前驳回商机","type":"line"},{"data":[null,null,null,null,null,null,null,null,null,null,null],"name":"IS计划转出当日拜访的商机量","type":"line"},{"data":[74,7,4,7,6,9,9,6,6,20,0],"name":"IS转出已确认商机","type":"line"},{"data":[69,4,6,3,6,4,5,4,9,28,0],"name":"IS转出未确认商机","type":"line"}]},"reportTemplateId":"SESSIONLOADED^_^BizOpps^_^pg_IS_bizopps^_^-620686780^_^b8b5c0f5-1408-434a-b6d2-f6bf43855387"},"status":0,"statusInfo":""};



})();